package com.swipemaster;

import android.app.Activity;
import android.os.Bundle;
import android.view.Display;
import android.view.Window;
import android.view.WindowManager;

public class SwipeMasterActivity extends Activity
{
	private Layout layout;

	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		// Hide title bar.
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		// Turn fullscreen, i.e. hide status bar with time etc.
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
		// Get width and height of screen.
		Display display = getWindowManager().getDefaultDisplay();
		int width = display.getWidth();
		int height = display.getHeight();
		
		layout = new Layout(this, width, height);
		layout.requestFocus();
		layout.setFocusableInTouchMode(true);
		setContentView(layout);
	}
}
